/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    padding: 20px;
}

.settings-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.settings-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section h3 {
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.setting-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.setting-item label {
    width: 120px;
    font-weight: 500;
    color: #555;
}

.setting-item input[type="range"] {
    flex: 1;
    margin: 0 10px;
}

.setting-item input[type="color"] {
    width: 50px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.setting-item select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-left: 10px;
}

.setting-item input[type="text"] {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    margin-right: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
}

.setting-item input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 统一个人信息设置输入框的样式 */
#share-name, #share-department, #share-position {
    /* 继承.setting-item input[type="text"]的样式，确保一致性 */
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
}

#share-name:focus, #share-department:focus, #share-position:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.setting-item button {
    padding: 8px 15px;
    background: #0078d7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.setting-item button:hover {
    background: #005a9e;
}

#opacity-value {
    width: 30px;
    text-align: center;
    font-weight: 500;
}

.settings-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.settings-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

#save-settings {
    background: #667eea;
    color: white;
}

#save-settings:hover {
    background: #5a6fd8;
}

#cancel-settings {
    background: #eee;
    color: #666;
}

#cancel-settings:hover {
    background: #ddd;
}